Spectroscopic photoacoustic imaging